<?php

declare(strict_types=1);

namespace App\Request\Pay;


use App\Request\BaseCommonRequest;

class CreatePayOrderRequest extends BaseCommonRequest
{
    /**
     * Determine if the user is authorized to make this request.
     */
    public function authorize(): bool
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     */
    public function rules(): array
    {
        return [
            'consume_type' => 'required',
            'pay_type' => 'required|in:1,2,3,10,11',
            'language' => 'required|string|in:zh-cn,zh-hk,en',
            'package' => 'required',

        ];
    }
}
